import java.util.Scanner;

public class Part3_5 {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入你的成绩：");
        double num = reader.nextDouble();
        if (num < 0 || num > 100){
            System.out.println("成绩输入有误，请重新输入");
        }
        if (num >= 0 && num < 60){
            System.out.println("你的成绩为C");
        }
        if (num >= 60 && num <= 80){
            System.out.println("你的成绩为B");
        }
        if (num >= 81 && num <= 100){
            System.out.println("你的成绩为A");
        }

    }
}
